home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
MapToWB.ifx
< prev
next >
Wrap
Text File
|
1996-03-02
|
1KB
|
37 lines
/*
* $VER: MapToWB 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Render the current image such that it can be displayed on a
* standard 4-color 640x200 Workbench screen.
*
*/
OPTIONS RESULTS
GetMain ; IF result = "" THEN EXIT /* make sure we have a buffer */
RequestFile '"Output Image Name..."' /* Get filename from user */
IF rc ~= 0 THEN EXIT /* Cancelled... */
output = result
SaveUndo ; Undo Off ; Redraw Off /* Save undo buffer, then turn it off */
Scale 640 200 /* Scale image to 640x200 */
Palette Rend /* Select render palette */
GrabPalette Workbench /* Grab workbench screen colors */
SetRange 8 0 3 /* Make range 8 the first four colors */
LockRange 8 On /* Lock the first four colors */
Render Go /* Render the image */
SaveRenderedAs ILBM output /* Save the resultant image */
Render Close /* Close render screen */
Undo On ; Undo Quiet ; Redraw On /* Restore original image */
EXIT /* All done */